package com.yan.common.mq.dirct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by yanl_ on 2018/4/17.
 */

@Component
@RabbitListener(queues = "test")    //监听器监听指定的Queue
public class DirctReceiverA {


    @RabbitHandler
    public void processC(String str) {
        System.out.println("Receive test:" + str);
    }


}
